package cn.ljy.quicksnip.model;

import cn.ljy.authority.model.SysHairdresser;
import cn.ljy.authority.model.SysShop;
import cn.ljy.common.model.BaseModel;
import cn.ljy.common.model.validate.AddWorkValidation;
import cn.ljy.common.model.validate.UpdateWorkValidation;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Date;

@ApiModel(value = "店家排班管理")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false, of = {"id"})
public class QsShopSchedule extends BaseModel {

    @ApiModelProperty(value = "店家排班日期ID", example = "1")
    @NotNull(groups = UpdateWorkValidation.class, message = "店家排班日期ID不能为空")
    private Long id;

    @ApiModelProperty(value = "店家ID", example = "288")
    @NotNull(groups = AddWorkValidation.class, message = "店家ID不能为空")
    private SysShop shop;
    private Long shopID;


    @ApiModelProperty(value = "时间段ID", example = "1")
    @NotNull(groups = AddWorkValidation.class, message = "时间段ID不能为空")
    private QsTimePeriod timePeriod;
    private Long timePeriodID;

    @ApiModelProperty(value = "排班日期", example = "2024-01-01")
    @NotNull(groups = AddWorkValidation.class, message = "排班日期不能为空")
    private Date scheduleDate;

    @ApiModelProperty(value = "理发师空位", example = "3")
    @NotNull(groups = AddWorkValidation.class, message = "理发师空位不能为空")
    private Integer hairdresserSlot;

    public QsShopSchedule(Long id) {
        this.id = id;
    }
}

